SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 61592: The error "No more spool space..." might occur when you score a model via a User Defined Function (UDF) with Teradata 14.0 or later

DetailsAboutRate It

In Teradata 14.0 or later, when you try to score a model via a User Defined Function (UDF), you might encounter an error similar to the following:

ERROR: Teradata execute: No more spool space in xxxx.

This problem occurs because the Teradata optimizer takes the data and moves it to one Access Module Processor (AMP) when running a UDF that is defined as NOT DETERMINISTIC. The spool space available on that one AMP might not be enough for the data, thus resulting in the error.

A possible workaround is to create the UDF as DETERMINISTIC instead of NOT DETERMINISTIC. To make this change, follow these steps:

  1. Run the %INDTD_PUBLISH_MODEL macro doing an action=REPLACE and specifying the OUTDIR= argument.
  2. Go to the directory specified with the OUTDIR= setting and edit the BTEQInput.txt file.
  3. Add DETERMINISTIC between PARAMETER STYLE SQL and CALLED ON NULL INPUT for each function, as shown here:
PARAMETER STYLE SQL
DETERMINISTIC
CALLED ON NULL INPUT
  1. Take the code in the file and run in Batch Teradata Query (BTEQ).


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Scoring Accelerator for TeradataWindows 7 Home Premium 32 bit9.3 TS1M29.4 TS1M6
Windows 7 Enterprise x649.3 TS1M29.4 TS1M6
Windows 7 Enterprise 32 bit9.3 TS1M29.4 TS1M6
Microsoft Windows XP Professional9.3 TS1M2
Microsoft Windows Server 2012 Std9.3 TS1M29.4 TS1M6
Microsoft Windows Server 2012 R2 Std9.3 TS1M29.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M29.4 TS1M6
Microsoft Windows Server 2012 Datacenter9.3 TS1M29.4 TS1M6
Microsoft Windows Server 2008 for x649.3 TS1M2
Microsoft Windows Server 2008 R29.3 TS1M2
Microsoft Windows Server 20089.3 TS1M2
Microsoft Windows Server 2003 for x649.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M2
Microsoft Windows 8.1 Pro x649.3 TS1M29.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M29.4 TS1M6
Microsoft Windows 8.1 Enterprise x649.3 TS1M29.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M29.4 TS1M6
Microsoft Windows 8 Pro x649.3 TS1M29.4 TS1M6
Microsoft Windows 8 Pro 32-bit9.3 TS1M29.4 TS1M6
Microsoft Windows 8 Enterprise x649.3 TS1M29.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M29.4 TS1M6
Microsoft® Windows® for x649.3 TS1M29.4 TS1M6
Teradata on Linux9.3 TS1M29.4 TS1M6
Windows 7 Home Premium x649.3 TS1M29.4 TS1M6
Windows 7 Professional 32 bit9.3 TS1M29.4 TS1M6
Windows 7 Professional x649.3 TS1M29.4 TS1M6
Windows 7 Ultimate 32 bit9.3 TS1M29.4 TS1M6
Windows 7 Ultimate x649.3 TS1M29.4 TS1M6
Windows Vista9.3 TS1M2
Windows Vista for x649.3 TS1M2
64-bit Enabled AIX9.3 TS1M29.4 TS1M6
64-bit Enabled HP-UX9.3 TS1M29.4 TS1M6
64-bit Enabled Solaris9.3 TS1M29.4 TS1M6
HP-UX IPF9.3 TS1M29.4 TS1M6
Linux9.3 TS1M29.4 TS1M6
Linux for x649.3 TS1M29.4 TS1M6
Solaris for x649.3 TS1M29.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.